package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.model.domain.OmcOldOutVar;

import java.util.Map;

/**
 * @author chenzheng
 * @description:
 * @date 2019/9/16 19:06
 */
public interface OmcOldOutVarService extends IService<OmcOldOutVar> {

    /**
     * init oldOut var
     *
     * @param loginAuthDto  the login auth dto
     *
     * @return  the int
     */
    Integer init(LoginAuthDto loginAuthDto);

    /**
     * destroy oldOut var
     *
     * @param loginAuthDto  the login auth dto
     *
     * @return  the int
     */
    Integer destroy(LoginAuthDto loginAuthDto);

    /**
     * query oldOut var by group id and key
     *
     * @param groupId   the group id
     * @param key       the revise var key
     *
     * @return  the revise value by key
     */
    String queryVarByGroupIdAndKey(Long groupId, String key);


    /**
     * query oldOut var by group id
     *
     * @param groupId   the group id
     *
     * @return  the map.
     */
    Map<String, Object> queryVarByGroupId(Long groupId);
}
